<?php

declare(strict_types=1);

namespace App\CustHub\Request;

use Mine\MineFormRequest;

class AffiliatePidRequest extends MineFormRequest
{

    public function listRules(): array
    {
        return [
            'affiliate_account_id' => 'required|integer',
        ];
    }

    public function saveRules(): array
    {
        return [
            'affiliate_account_id' => 'required|integer',
            'pid' => 'required|string',
            'remark' => 'string',
        ];
    }


    public function updateRules(): array
    {
        return [
            'id' => 'required|integer',
            'pid' => 'required|string',
            'remark' => 'string',
        ];
    }

    public function deleteRules(): array
    {
        return [
            'id' => 'required'
        ];
    }

    public function getOauthUrlRules(): array
    {
        return [
            'id' => 'required'
        ];
    }

    public function checkPidHasOauthRules(): array
    {
        return [
            'id' => 'required',
            'oauthId' => 'required'
        ];
    }
}